package com.smartcar.driver.feign.fallBack;

import com.smartcar.common.domain.User;
import com.smartcar.common.domain.request.FindUserVo;
import com.smartcar.common.domain.request.UpdateLoginVo;
import com.smartcar.common.result.Result;
import com.smartcar.driver.feign.AdminFeign;
import org.springframework.stereotype.Service;

@Service
public class AdminFeignServiceImpl implements AdminFeign {

    @Override
    public Result<User> findUserByusername(FindUserVo findUserVo) {
        return Result.error("服务不稳定，进入熔断");
    }

    @Override
    public Result<Integer> insertUser(User user) {
        return Result.error("服务不稳定，进入熔断");
    }

    @Override
    public Result<User> verifyUniqueUserName(String username) {
        return Result.error("服务不稳定，进入熔断");
    }

    @Override
    public Result findByPhone(String phone) {
        return Result.error("服务器不稳定，进入熔断");
    }

    @Override
    public Result<Integer> updateLoginAdmin(UpdateLoginVo updateLoginVo) {
        return Result.error("服务不稳定，进入熔断");
    }

    @Override
    public Result updateDriverAcceptStatus(User user) {
        return Result.error("服务不稳定，进入熔断");
    }
}
